package cn.onlov.video.bus;

    public class ResultUtil {

        public static Result success(Object object) {
            Result result = new Result();
            result.setCode(0);
            result.setMsg("成功");
            result.setData(object);
            return result;
        }


        public static Result success(Object object ,String string ) {
            Result result = new Result();
            result.setCode(0);
            result.setMsg(string);
            result.setData(object);
            return result;
        }
        public static Result success() {
            return success(null);
        }

        public static Result error( String msg) {
            Result result = new Result();
            result.setCode(8888);
            result.setMsg(msg);
            return result;
        }
    }

